Repository navigation
Upgrade - #1
Merged
Merged
Upgrade#1
Conversation
- Mount API under /api so the client's default base URL works locally and in prod - Database singleton: cache the connect promise, stop calling process.exit on failure - Require JWT_SECRET; load dotenv before any module reads env - Registration can no longer create admin accounts - Average rating aggregate casts eventId to ObjectId (was always 0) - Cancel booking: extract ids from populated refs via idOf() (was a CastError) - Strip bookedCount/organizerId from event create/update bodies - Attendee list is restricted to the event's organizer or an admin - styled-jsx SSR registry so pages render styled (no flash of unstyled content) - Home search navigates with the router instead of a full reload Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- Express 5 with a single error middleware; controllers no longer try/catch - zod schemas validate every body, query and id param; unknown keys are stripped - Typed req.user via module augmentation; requireUser() helper - Indexes: event listing, organizer lookup, one confirmed booking and one review per user per event (unique partial/compound indexes) - Booking rules: no past events, no duplicates, seat returned on any failure, transaction id stored, refund on cancel, no cancel after start - Review rules: only attendees, only after the event ends, stats include count - GET /api/events: q, category, eventType, from, to, page, limit (replaces /search) - Seed script with 11 events, bookings and reviews (npm run seed) - node:test suite against a local *_test database; tsx replaces ts-node-dev - GitHub Actions CI for server (typecheck + tests) and client (lint, tsc, build) - Local listener moved to src/server.ts; src/index.ts exports the app for Vercel/tests Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…design - Same-origin /api/[...path] proxy forwards to Express and keeps the JWT in an httpOnly cookie; the browser never calls Express, so CORS is removed - proxy.ts guards /dashboard and /bookings; the API still authorizes every call - Public pages are server components with real metadata (title, OG image); filters, search, date range and pagination are plain links and GET forms - All styled-jsx replaced by CSS Modules on a token-based design system with dark/light themes from a cookie (no flash), next/font, lucide icons, event images via next/image, native <dialog> confirmations, skeletons on private routes - New pages: edit event, attendees list; shared EventForm; real QR codes on tickets - Booking card and review form are small client islands that refresh server data - Login/register honour ?next=, reject open redirects, redirect when signed in - Default event listing is upcoming-only, with a "Past events" chip - README rewritten for the new architecture, rules, setup, tests and deployment Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ad metadata - Buttons and brand-coloured text use darker brand tokens (brand-dark 5:1 with white; brand-ink per theme for text), footer mark included - Footer column headings are h2, keeping heading order sequential - Event facts are a plain list instead of a <dl> with wrapper elements - Home hero no longer fades in and below-the-fold cards are not eager-loaded, so the largest contentful paint is not delayed - Lighthouse and non-JS crawlers receive metadata in <head> (htmlLimitedBots) - Distinct confirm labels in the cancel/delete dialogs Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…te text) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Design direction drawn from the installed design skills (design-taste-frontend, ui-ux-pro-max, apple-design craft lens, web-design-guidelines): - Palette: ink neutrals with one stage-light magenta accent; every text pair is at least 4.5:1 (ratios documented in globals.css). Category rainbow and gradient text removed; photography supplies the colour. - Type: Archivo condensed (width axis) for display, Geist for UI, Geist Mono for ticket codes. Icons moved from Lucide to Phosphor. - Signature: the admission ticket. Cards, booking panel, My Tickets and the organizer band use real notch cut-outs (CSS masks) and a tear line. - Home: asymmetric hero with a dealt deck of the next three real events, a "Coming up" bento, a typographic category list with a cursor-following photo preview, and a ticket-shaped organizer band. - Motion: headline mask reveal, stage-light fade-up, pointer tilt and highlights from one delegated listener, scroll-driven reveals, a card-to-page image morph via React <ViewTransition>, a stamp on booking, and an animated native dialog. All off under prefers-reduced-motion. - Floating glass nav, skip link, theme-color, focus rings, Title Case actions, container-query fact strip, no-wrap overflow fixes. - Seed data uses subject-matched Unsplash photos instead of random ones. Lighthouse (mobile): accessibility, best practices and SEO 100 on home, listing and event pages; performance 86-95; CLS 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Colour (light theme, now the default; dark theme unchanged and still available): - One colour per category (pink, blue, lime, orange, yellow, violet, teal), each with vivid / deep / tint / on-colour values checked for contrast - Hero becomes a festival poster: highlighter swipe on "more.", crisp colour shapes that pop in behind the ticket deck, ink search button - Cards get a category-coloured date tile and edge; chips, category rows, booking ticket, My Tickets stubs and dashboard tiles use the same colours - Category rows show a coloured icon and fill with colour on hover; violet and yellow organizer band; palette stripe on the footer Glitches fixed: - Card photos animated on their own on every page change and filter click (ViewTransition enter/exit/update); now only the card-to-page morph runs - Whole-page cross-fade on navigation flickered the glass nav; removed - Back tickets in the hero deck showed half-covered, mid-word-broken titles; they now show short details on their visible edge and expand on hover - Category photo preview flew in from its last position; position no longer animates - Scroll reveal fought hover lift on cards; reveal now uses `translate` and is no longer applied to result grids - Every seeded event started at the same time of day; realistic times now - Blank grey/dark boxes while photos load; tinted placeholders instead Lighthouse (mobile): accessibility, best practices and SEO 100 on home, listing and event pages; performance 86-95; CLS 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Navbar: - Links sit next to the logo (Explore, Categories, For Hosts / My Tickets, Dashboard) instead of one lone pill in the middle; sliding underline for hover and the current page; search and theme icons, a divider, then auth - Flat on the page at the top, morphing into a floating glass pill as you scroll (scroll-driven animation; always glass where unsupported) - Logo mark tile that spins on hover; magnetic Sign Up button Landing page: - Hero: letters pop in one by one and jump under the cursor; the second line rolls through "more. / tonight. / louder. / together." with a new highlight colour each time; a colour glow trails the cursor; shapes float and drift against the cursor (parallax); tickets bob and tilt in 3D; magnetic search button - Two crossing marquee bands (event titles and categories) - Count-up stats from real data (registered integer property, scroll-driven) - "Coming up" pins and pans sideways as you scroll, with a progress bar (swipeable row on small screens, without support, or with reduced motion) - Categories slide in from alternating sides; organizer ticket gets a 3D tilt, a foil shine sweep and a stub that tears away on hover - Rainbow scroll-progress bar - No new dependencies: CSS (scroll-driven animations, individual transform properties, @Property) plus the existing delegated pointer listener - Reduced motion turns all of it off Lighthouse (mobile): accessibility, best practices, SEO 100; performance 86 home / 91 listing; CLS 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…atement, sticky stack - Live countdown sticker on the hero deck for the next event, digits flip as they change (useSyncExternalStore clock, no hydration mismatch) - "Surprise Me": slot-machine spin through real upcoming events, slows down, lands, fires confetti and opens the pick (straight there under reduced motion) - Statement section: each word paints in as it scrolls into view, highlight words take their category colour; moving the mouse leaves a trail of event photos behind the text - "How it works": three cards stick and stack while earlier ones settle back, each with a live mini preview (category chips with a blinking caret, a ticket that gets stamped, a QR with a scanner line) - Theme toggle: the new theme grows out of the button as a circle (View Transitions API with a clip-path reveal) - Confetti burst when a booking succeeds (Web Animations API, no dependency) - Event cards tilt in 3D toward the cursor - Fully opaque stamp/digit animations so text never reads as faint Lighthouse (mobile): accessibility, best practices, SEO 100; performance 87; CLS 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k-in, ⌘K search Attendees: - Saved events: heart on every card and event page (optimistic, signed-out visitors go to log in), new /saved page and nav link (API: GET/PUT/DELETE /api/me/saved..., stored as user.saved with $addToSet) - Add to calendar: Google Calendar link or an RFC 5545 .ics download (/events/:id/calendar.ics, escaped and line-folded), in a native popover anchored to its button; also on upcoming tickets - Share: native share sheet, falling back to copy-link - "More like this": upcoming events in the same category on each event page - Tickets show a "Checked in" badge once admitted Organizers: - Check-in desk on the attendees page: type a code or scan the QR with the camera (BarcodeDetector where supported); results feed with success/error, Door column with admit time, checked-in counter (API: POST /api/bookings/check-in, owner-only, case-insensitive codes, atomic so a double scan admits once, cancelled tickets refused) Everyone: - ⌘K / Ctrl+K (or "/") quick search: live event search, categories and pages, arrow keys + Enter, opened from a new navbar search pill Also: data-scroll-behavior on <html> (no smooth scroll on route changes), skipped theme transitions no longer throw. Tests: 7 API tests pass (2 new: saved events, check-in). Verified the flows end to end in Playwright (check-in, saving, quick search, booking confetti, theme switch). Lighthouse accessibility, best practices, SEO 100. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ws APIs; richer demo data - Prices shown as ₹ with Indian digit grouping; rupee labels, payment messages and limits - GET /api/events: sort (date, price-asc, price-desc, popular) and maxPrice - GET /api/events/my/stats: zero-filled daily bookings and revenue (Asia/Kolkata) - GET /api/reviews/recent: newest reviews, skipping deleted events (bug caught by a test) - Popularity badges: Sold out, Only N left, Almost full, Selling fast - Seed: realistic rupee prices, 10 attendees, 64 bookings over three weeks, 7 reviews - 10 API tests pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.